﻿package com.hh.bss.config;

import com.hh.bss.util.*;



public class Environment {
   public static String DOMAIN_NAME="bss.tb.com";
   public static String ONLINE_COOKIE_NAME="AUTH_COOKIE_NAME";
   public static String SECURE_KEY="a829173";
   //public static final String PASSWORD_MD5_KEY="#DFSDd2*79ds";
   public static final String PASSWORD_MD5_KEY="";
   public static String UPLOADFILEDIR="/upload";
   public static String MAIL_SERVER="";
   public static String MAIL_SERVER_PORT="25";
   public static String MAIL_DEFAULT_SENDER="";
   public static String MAIL_DEFAULT_SENDER_PASSWORD="";
   
   public static String MAIL_JOB_SENDER="";
   public static String MAIL_JOB_SENDER_PASSWORD="";
   public static String MAIL_RECRUIT_SENDER="";
   public static String MAIL_RECRUIT_SENDER_PASSWORD="";
   
   public static String IGNORE_PAGES="";
   public static PropertyManager manager = new XMLPropertyManager("environment.xml",true);

	static {
		if(StringHelper.isEmpty(manager.getProperty("DOMAIN_NAME")) == false){
			DOMAIN_NAME = manager.getProperty("DOMAIN_NAME");
		}
		if(StringHelper.isEmpty(manager.getProperty("ONLINE_COOKIE_NAME")) == false){
			ONLINE_COOKIE_NAME = manager.getProperty("ONLINE_COOKIE_NAME");
		}
		if(StringHelper.isEmpty(manager.getProperty("SECURE_KEY")) == false){
			SECURE_KEY = manager.getProperty("ONLINE_COOKIE_NAME");
		}
		if(StringHelper.isEmpty(manager.getProperty("UPLOADFILEDIR")) == false){
			UPLOADFILEDIR = manager.getProperty("UPLOADFILEDIR");
		}
		if(StringHelper.isEmpty(manager.getProperty("IGNORE_PAGES")) == false){
			IGNORE_PAGES = manager.getProperty("IGNORE_PAGES");
		}
		
		if(StringHelper.isEmpty(manager.getProperty("MAIL_SERVER")) == false){
			MAIL_SERVER = manager.getProperty("MAIL_SERVER");
		}
		
		if(StringHelper.isEmpty(manager.getProperty("MAIL_SERVER_PORT")) == false){
			MAIL_SERVER_PORT = manager.getProperty("MAIL_SERVER_PORT");
		}
		
		if(StringHelper.isEmpty(manager.getProperty("MAIL_DEFAULT_SENDER")) == false){
			MAIL_DEFAULT_SENDER = manager.getProperty("MAIL_DEFAULT_SENDER");
		}
		
		if(StringHelper.isEmpty(manager.getProperty("MAIL_DEFAULT_SENDER_PASSWORD")) == false){
			MAIL_DEFAULT_SENDER_PASSWORD = manager.getProperty("MAIL_DEFAULT_SENDER_PASSWORD");
		}
		//
		if(StringHelper.isEmpty(manager.getProperty("MAIL_JOB_SENDER")) == false){
			MAIL_JOB_SENDER = manager.getProperty("MAIL_JOB_SENDER");
		}
		
		if(StringHelper.isEmpty(manager.getProperty("MAIL_JOB_SENDER_PASSWORD")) == false){
			MAIL_JOB_SENDER_PASSWORD = manager.getProperty("MAIL_JOB_SENDER_PASSWORD");
		}
		
		if(StringHelper.isEmpty(manager.getProperty("MAIL_RECRUIT_SENDER_PASSWORD")) == false){
			MAIL_RECRUIT_SENDER_PASSWORD = manager.getProperty("MAIL_RECRUIT_SENDER_PASSWORD");
		}
		if(StringHelper.isEmpty(manager.getProperty("MAIL_RECRUIT_SENDER_PASSWORD")) == false){
			MAIL_RECRUIT_SENDER_PASSWORD = manager.getProperty("MAIL_RECRUIT_SENDER_PASSWORD");
		}
		
		
	}
}
